﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Cam
{
    public class Camera
    {
       // private static Matrix matrix;//the camra matrix
        public static Vector2 Location;

        public static Matrix GetMatrix()
        {
            Matrix MyMatrix;
            MyMatrix = Matrix.CreateTranslation(new Vector3(-Location.X, -Location.Y, 0) + new Vector3(Globals.Globals.Screen_Width / 2, Globals.Globals.Screen_Height / 2,0));
            return MyMatrix;
        }
        
    }
}
